<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
		"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets" template="template.xhtml">

	<f:loadBundle basename="clinivida.sistema.mensagens.sistema" var="msgs" />

	<ui:define name="content">
		<h:form prependId="false">
		
			<p:growl id="growl" showDetail="false" />
			<p:panel style="margin: 250px auto; width: 250px; " header="CliniVida">
				<h:outputText value="#{msg.usuario}:" />
				<h:inputText alt="login" value="#{usuarioBean.usuario.login}"
					id="login" required="true" requiredMessage="#{msg.campoUsuario}" />
				<h:outputLabel value="#{msg.senha}:" />
				<h:inputSecret alt="senha" value="#{usuarioBean.usuario.senha}"
					id="senha" required="true" requiredMessage="#{msg.campoSenha}" />
				<p:spacer width="10" />
				<br />
				<h:panelGrid columns="3">
					<p:spacer style="width: 75px; height: 1px;"  />
					<p:commandButton value="Login"
						action="#{usuarioBean.autenticaUsuario}"
						style="font-size: 12px; font-weight: bolder; margin: 0 100;"
						update="growl" />
					<p:spacer width="10" />
				</h:panelGrid>
			</p:panel>
		</h:form>
	</ui:define>
</ui:composition>